package tron.config;

import org.springframework.cache.Cache;
import org.springframework.cache.interceptor.CacheErrorHandler;

public class TronCacheErrorHandler implements CacheErrorHandler {
    @Override
    public void handleCacheGetError(RuntimeException e, Cache cache, Object o) {
        System.out.println("===缓存get异常===");
    }

    @Override
    public void handleCachePutError(RuntimeException e, Cache cache, Object o, Object o1) {
        System.out.println("===缓存put异常===");
    }

    @Override
    public void handleCacheEvictError(RuntimeException e, Cache cache, Object o) {
        System.out.println("===缓存evict异常===");
    }

    @Override
    public void handleCacheClearError(RuntimeException e, Cache cache) {
        System.out.println("===缓存clear异常===");
    }
}
